package net.jiastudy.biz.project.service;

import java.util.List;
import java.util.Map;

import net.jiastudy.biz.project.entity.MoneyImporter;
import net.jiastudy.biz.project.entity.ProjectImporter;
import org.springframework.data.domain.Sort;

import com.baomidou.mybatisplus.plugins.Page;

import net.jiastudy.biz.project.entity.DeptProject;
import net.jiastudy.biz.project.entity.DeptProjectMember;
import net.jiastudy.biz.project.entity.DeptProjectMoney;
import net.jiastudy.biz.project.entity.DeptProjectWork;

public interface DeptProjectService {
	public DeptProject createProject(DeptProject project);
	
	public Page<DeptProject> pageDeptProjects(Page<DeptProject> page, Map<String, String> conditions, Sort sort);
	
	public DeptProject updateProject(DeptProject project);

	public Boolean deleteProject(Long id);
	
	public DeptProjectMember updateMember(DeptProjectMember member);
	
	public DeptProjectMoney updateMoney(DeptProjectMoney money);
	
	public DeptProjectWork updateWork(DeptProjectWork work);
	
	public DeptProjectMember createMember(DeptProjectMember member);

	public boolean deleteMemeber(Long memberId);
	
	public DeptProjectMoney createMoney(DeptProjectMoney money);

	public boolean deleteMoney(Long moneyId);
	
	public DeptProjectWork createWork(DeptProjectWork work);

	public boolean deleteWork(Long workId);

	public DeptProject getById(Long id);

	Map<String, List<DeptProject>> findDeptProjects(Map<String, Object> condition);

	public void importProject(List<ProjectImporter> list, List<MoneyImporter> moneyList);
}
